/**
 * Created by Li on 2017/7/5.
 */
$(function () {
    //banner
    var bannerCont = new Swiper('.bannerCont', {
        initialSlide:0,
        pagination: '.swiper-pagination',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        speed:500,
        autoplay : 5000,
        autoplayDisableOnInteraction : false,
        paginationClickable :true,
        roundLengths : true,
        preventLinksPropagation : false,
        loop: true
    });
    //product
    /*$('.productTabItem').mousemove(function () {
        $('.productList').removeClass('productListDefault').eq($(this).index()).addClass('productListDefault');
        $('.productTabItem').removeClass('productTabItemDefault');

    });*/
    //case
    var caseSwiper = new Swiper('.caseSwiper', {
        effect: 'coverflow',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        grabCursor: true,
        centeredSlides: true,
        slidesPerView: 'auto',
        loop: true,
        coverflow: {
        rotate: 50,
            stretch: 0,
            depth: 100,
            modifier: 1,
            slideShadows : true
        }
    });
});